package com.star.truffle.shop.dto.req;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

@Data
public class SentryMessageRequestDto {
  private String project;
  @JsonProperty("project_name")
  private String projectName;
  private String logger;
  private String culprit;
  private String level;
  private String url;
  private String message;
  private Event event;
  
  @Data
  public static class Event {
    private Long timestamp;
    private String title;
    private Extra extra;
  }
  
  @Data
  public static class Extra {
    private String traceId;
    private String spanId;
    private String hostIp;
    @JsonProperty("Sentry-Threadname")
    private String threadName;
  }
}
